#login_form
  %h2
    = t('.login_to_kassi')
  - if facebook_connect_in_use?
    .facebook_login_container
      .facebook_login_label
        = t(".log_in_with_your_facebook_account")

      -# <fb:login-button show-faces="false" width="200" max-rows="1"></fb:login-button>
      -# <div class="fb-login-button" data-show-faces="false" data-width="100" data-max-rows="1" api-key="208630779265610"></div>
      -# <div class="fb-login-button">Login with Facebook</div>
      -# <div class="fb-like" data-send="true" data-layout="button_count" data-width="200" data-show-faces="false"></div>
      = link_to(image_tag("icons/facebook-login.png", {:alt => "Facebook Connect", :class => "facebook_login"}), person_facebook_omniauth_authorize_path, method: :post)
    .normal_login_label
      = t(".or_sign_up_with_your_username")
  = form_tag("#{APP_CONFIG.login_domain}#{sessions_path}",:action => "create") do
    .form_field_container
      %label{:for => "login"}
        = username_or_email_label + ":"
      = text_field_tag "person[login]", nil, :value => session[:form_login], :class => :text_field
    .form_field_container
      %label{:for => "password"}
        = t('common.password') + ":"
      = password_field_tag "person[password]", nil, :class => :text_field
    .form_field_container
      = submit_tag(t('.login'), :class => "send_button")
    .form_field_container
      .links
        - unless @facebook_merge
          = link_to t('.create_new_account'), (@current_community ? sign_up_path : new_tribe_path), :class => "green_part_link"
          %br/
        = link_to t('.i_forgot_my_password'), "#", :id => "password_forgotten_link", :class => "green_part_link"
  #password_forgotten
    = render :partial => "sessions/password_forgotten"
